package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.entity.Course;
import com.chen.vo.CourseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程相关Mapper
 */
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 根据年级编号和分科情况查看科目信息
     * @param gradeId
     * @param division
     * @return
     */
    public List<CourseVO> findCourseByGradeIdAndDivision(@Param("gradeId") Integer gradeId, @Param("division") Integer division);

    /**
     * 查询全部科目
     * @return
     */
    public List<CourseVO> findAll();


    /**
     * 根据id获取科目信息
     * @param id
     * @return
     */
    public CourseVO getCourseById(Integer id);

}
